const express = require("express")
const router = express.Router()
const screenController = require("../controllers/screenController")

// 天气
router.get("/weather/todayWeatherQuery", screenController.getWeather)
// 假期
router.get("/date/todayInfoQuery", screenController.getHoliday)
// 流量list
router.get("/kkManage/listQuery/all", screenController.getFlowList)
// 流量list-detail1
router.get("/kkManage/detailQuery/byNameAndDirectionType", screenController.getFlowDetail1)
// 流量list-detail2
router.get("/kkManage/shortForecast/byDirectionKkDesc", screenController.getFlowDetail2)
// 流量list-detail-chart
router.get("/kkManage/flowTrend/actualAndForeCast/byDateDirectionKkDesc", screenController.getFlowDetailChat)
// 流量pannel-chart
router.get("/kkManage/indexQuery/byKkTag", screenController.getFlowChart)
// 信控灯list
router.get("/trafficLightManage/listQuery/all", screenController.getSignList)
// 信控灯pannel
router.get("/trafficLightManage/indexQuery/byStatus", screenController.getSignPannel1)
router.get("/trafficLightManage/indexQuery/byRegion", screenController.getSignPannel2)

// 视频pannel
router.get("/videoManage/indexQuery/byStatus", screenController.getVideoPannel1)
router.get("/videoManage/indexQuery/byRegion", screenController.getVideoPannel2)

// 视频list
router.get("/videoManage/listQuery/all", screenController.getVideoList)
// 警力list
router.get("/resourceManage/listQuery/all", screenController.getPatrolWagonList)
// 警情list
router.get("/emergencyManage/listQuery/all", screenController.getDangerThingsList)
// 危险车辆list
router.get("/riskCarManage/listQuery/all", screenController.getDangerCarList)
// 异常事件list
router.get("/eventManage/listQuery/all", screenController.getDangerCaseList)

// 警力 pannel 1
router.get("/resourceManage/indexQuery/byResourceType", screenController.getPatrolWagonPannel1)
// 警力 pannel 2
router.get("/resourceManage/indexQuery/byRegion", screenController.getPatrolWagonPannel2)
// 警情 pannel 1
router.get("/emergencyManage/indexQuery/byEmergencyType", screenController.getDangerThingsPannel1)
// 警情 pannel 2
router.get("/emergencyManage/indexQuery/byRegion", screenController.getDangerThingsPannel2)

// 异常事件pannel
router.get("/eventManage/indexQuery/byEventType", screenController.DangerCasePannel)



module.exports = router
